package com.jiyun.user.controller;

import com.jiyun.Result.Result;
import com.jiyun.user.service.SigninRecordService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
@Slf4j
public class SigninRecordController {

    @Autowired
    private SigninRecordService signinRecordService;

    @GetMapping("signinRecord/addSigninRecord/{date}/{token}")
    public Result addSigninRecord(@PathVariable Date date, @PathVariable String token){

        return signinRecordService.addSigninRecord(date,token);
    }
}
